Fixed a bug(weight)
Merge pull request #3 from dinever/master

Compare atomic triggers to the regexp instead of the raw trigger