update .gitignore

update .gitignore to exclude the .settings folder
fix a bug of the Regex.or method
update tests