Commit 3aa61ab1 by Bill Lovett

New patterns

- Citation needed
- Never again
- FWIW
1 parent 97ffa6a0
Pipeline #6567079 passed
in 3 minutes 9 seconds
Showing with 27 additions and 0 deletions
......@@ -91,6 +91,7 @@ let BETTER = (function () {
sub(/\bI concur\b/gi, 'I agree');
sub(/\bergo\b/gi, 'so');
sub(/\bI'm keen on/gi, 'I\'m interested in');
sub(/Citation needed\.\s*/gi, '');
sub(/I personally/g, 'I');
sub(/\bmost any\b/gi, caseAwareReplace('almost any'));
......@@ -119,6 +120,7 @@ let BETTER = (function () {
sub('I respectfully', 'I');
sub(/(really\s*)+/g, caseAwareReplace('really '));
sub(/I'm sorry[, ]+but\s+/i);
sub(/Never again\.?\s*/)
// you're not the boss of me
sub(/\s?end of discussion\W+/gi);
......@@ -173,6 +175,7 @@ let BETTER = (function () {
sub(/\bIMNSHO\W+/g);
sub(/\bLPT[\w\W]+:\s*(\w)/g, uppercaseFirstGroup);
sub(/\bw\//, 'with');
sub(/\bFWIW,?\s*(\w)/, uppercaseFirstGroup);
// get to the point
sub(/I (up|down)voted you\.\s*/g);
......
......@@ -1413,3 +1413,27 @@ QUnit.test('keen on', function (assert) {
assert
);
});
QUnit.test('Citation needed', function (assert) {
check(
'Citation needed. I found this',
'I found this',
assert
);
});
QUnit.test('FWIW', function (assert) {
check(
'FWIW, though I\'m an avid supporter',
'Though I\'m an avid supporter',
assert
);
});
QUnit.test('Never again', function (assert) {
check(
'Never again.',
'',
assert
);
});
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!