instedd / mbuilder

Scalable SMS application builder
http://mbuilder.instedd.org/
6 stars 1 forks source link

Triggers with pills generates invalid regexes #155

Closed waj closed 9 years ago

waj commented 9 years ago

Regex are being created with an extra withespace before each pill, so valid messages are not being match by any trigger

To reproduce:

Obtained:

Performed actions Error: No trigger matched the message.

Dev note: Generated pattern:

/\A\sregister \s+([^0-9 ]\S)\s*\Z/i

There is an extra space after register or the \s+ needs to be \s*


waj commented 9 years ago

Fixed Issue #155: Striped text on regexes. Extra spaces are added sometimes by the pills or if the user makes a mistake

→ <>


waj commented 9 years ago

The issue still happens. The character that the pill adds is not a regular whitespace but a no-break space


waj commented 9 years ago

Fixed Issue #155 : Remove non-breaking spaces that are being added by the sag pill

→ <<cset 55df45a4c69c>>