This might have worked in previous versions of PHP but it doesn't anymore:
For instance, the expression *-translation-table-* is converted into:
.*[-[-_]]translation[-[-_]]table[-[-_]].*
instead of the expected:
.*[-_]translation[-_]table[-_].*
Thus preventing form ID to be matched.

The attached patch fixes this issue.

CommentFileSizeAuthor
dirtyforms.module.patch437 bytesanrikun

Comments

mcurry’s picture

Title: _dirtyforms_match_rules incorrectly converts strings into regexes » _dirtyforms_match_rules incorrectly converts strings into regexes (problem with hyphens)
Issue tags: +hyphens

subscribe

jacob.embree’s picture

Issue summary: View changes
Status: Needs review » Closed (duplicate)
Related issues: +#1060582: Bug with hyphens and with views form