Skip to content

Contribute a new Finder

Benoy Antony edited this page Feb 22, 2016 · 3 revisions

We welcome all contributions. You can contribute features, enhancements, bug fixes or new Finders.

##Want to contribute features, bug fixes, enhancements?

Fork it
Create your feature branch (git checkout -b my-new-feature)
Commit your changes (git commit -am 'Add some feature')
Push to the branch (git push origin my-new-feature)
Create new Pull Request

##To contribute a new Finder with regular expressions

  • Create a regular expression. Test it
  • Give a name to it
  • Add the snippet to finders_default.xml
  • Keep it disabled.
  • Sample XML snippet below:
<finder>
  <name>Date Of Birth</name>
  <pattern>
    (\D|^)((?:0[1-9])|(?:1[0-2]))\/((?:0[0-9])|(?:[1-2][0-9])|(?:3[0-1]))\/(\d{4})(\D|$)
  </pattern>
  <enabled>false</enabled>
</finder>
Clone this wiki locally