Truncate added in the text transformers

CommentFileSizeAuthor
#4 rules_data_transforms-truncate--2475275-3.patch1.88 KBnwom
#1 truncate-2475275-1.patch2.15 KBAnonymous (not verified)

Comments

Anonymous’s picture

Assigned: » Unassigned
Status: Needs work » Needs review
Related issues: +#1851976: truncate and substring
StatusFileSize
new2.15 KB
nwom’s picture

Still applies cleanly to the dev build from October 30, 2015 - 16:14

nwom’s picture

This patch no longer applies to the newest dev version. The following error is shown when patching:

Checking patch rules_data_transforms.rules.inc...
Hunk #1 succeeded at 238 (offset 53 lines).
error: while searching for:
  return array('trimmed_text' => $func($input_text));
}

function rules_data_transforms_action_strip_tags($input_text, $allowed) {
  if (isset($allowed)) {
    return array('stripped_text' => strip_tags($input_text, $allowed));

error: patch failed: rules_data_transforms.rules.inc:393

Will reroll the module in the next few minutes.

nwom’s picture

Here is the rerolled patch. Please review

Status: Needs review » Needs work

The last submitted patch, 4: rules_data_transforms-truncate--2475275-3.patch, failed testing.

nwom’s picture