Skip to content

Commit a1d9fa4

Browse files
author
Charlike Mike Reagent
committed
first
0 parents  commit a1d9fa4

File tree

11 files changed

+321
-0
lines changed

11 files changed

+321
-0
lines changed

.editorconfig

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# .editorconfig <https://github.com/tunnckoCore/dotfiles>
2+
#
3+
# Copyright (c) 2014 Charlike Mike Reagent, contributors.
4+
# Released under the MIT license.
5+
#
6+
7+
root = true
8+
9+
[*]
10+
indent_style = space
11+
charset = utf-8
12+
end_of_line = lf
13+
insert_final_newline = false
14+
trim_trailing_whitespace = false
15+
16+
[*.{json,cson,yml,yaml,md}]
17+
indent_size = 2
18+
19+
[*.{js,php}]
20+
indent_size = 2
21+
insert_final_newline = true
22+
trim_trailing_whitespace = true
23+
24+
[*.{php,html,jade,css,stylus}]
25+
indent_size = 4
26+
27+
[Makefile]
28+
indent_size = 2
29+
indent_style = tab
30+
31+
[.*rc]
32+
indent_size = 2
33+
indent_style = space
34+
trim_trailing_whitespace = true

.gitattributes

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# .gitattributes <https://github.com/tunnckoCore/dotfiles>
2+
#
3+
# Copyright (c) 2014 Charlike Mike Reagent, contributors.
4+
# Released under the MIT license.
5+
#
6+
7+
# These settings are for any web project
8+
9+
# Handle line endings automatically for files detected as text
10+
# and leave all files detected as binary untouched.
11+
12+
* text=auto
13+
14+
#
15+
# The above will handle all files NOT found below
16+
# These files are text and should be normalized (Convert crlf => lf)
17+
#
18+
19+
*.php text
20+
*.css text
21+
*.js text
22+
*.htm text
23+
*.html text
24+
*.xml text
25+
*.txt text
26+
*.ini text
27+
*.inc text
28+
.htaccess text
29+
30+
#
31+
# These files are binary and should be left untouched
32+
# (binary is a macro for -text -diff)
33+
#
34+
35+
*.png binary
36+
*.jpg binary
37+
*.jpeg binary
38+
*.gif binary
39+
*.ico binary
40+
*.mov binary
41+
*.mp4 binary
42+
*.mp3 binary
43+
*.flv binary
44+
*.fla binary
45+
*.swf binary
46+
*.gz binary
47+
*.zip binary
48+
*.7z binary
49+
*.ttf binary

.gitignore

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# .gitignore <https://github.com/tunnckoCore/dotfiles>
2+
#
3+
# Copyright (c) 2014 Charlike Mike Reagent, contributors.
4+
# Released under the MIT license.
5+
#
6+
7+
# Always-ignore dirs #
8+
# ####################
9+
_gh_pages
10+
node_modules
11+
bower_components
12+
components
13+
vendor
14+
build
15+
dest
16+
dist
17+
src
18+
lib-cov
19+
coverage
20+
nbproject
21+
cache
22+
temp
23+
tmp
24+
25+
# Packages #
26+
# ##########
27+
*.7z
28+
*.dmg
29+
*.gz
30+
*.iso
31+
*.jar
32+
*.rar
33+
*.tar
34+
*.zip
35+
36+
# OS, Logs and databases #
37+
# #########################
38+
*.pid
39+
*.dat
40+
*.log
41+
*.sql
42+
*.sqlite
43+
*~
44+
~*
45+
46+
# Another files #
47+
# ###############
48+
Icon?
49+
.DS_Store*
50+
Thumbs.db
51+
ehthumbs.db
52+
Desktop.ini
53+
npm-debug.log
54+
.directory
55+
._*

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: "node_js"
2+
node_js:
3+
- "0.10"
4+
- "0.11"

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Makefile <https://github.com/tunnckoCore/dotfiles>
2+
#
3+
# Copyright (c) 2014 Charlike Mike Reagent, contributors.
4+
# Released under the MIT license.
5+
#
6+
7+
MOCHA = node_modules/.bin/mocha
8+
9+
test:
10+
npm install
11+
${MOCHA}
12+
13+
clean:
14+
rm -rf node_modules
15+
16+
.PHONY: test clean

history.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## v0.1.0 / December 15, 2014
2+
- init commits

index.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* mentions-regex <https://github.com/regexps/mentions-regex>
3+
*
4+
* Copyright (c) 2014 Charlike Mike Reagent, contributors.
5+
* Released under the MIT license.
6+
*/
7+
8+
'use strict';
9+
10+
module.exports = function metntionsRegex(opts) {
11+
opts = opts || {};
12+
13+
var space = '(?:\\s+)';
14+
var dot = opts.dot || false;
15+
var len = opts.length || 30;
16+
var length = '{1,' + len + '}';
17+
var match = opts.match || '\\w' + length;
18+
var startSpace = opts.startSpace === false ? '' : space;
19+
var endSpace = opts.endSpace === false ? '' : space;
20+
21+
match = opts.dot && !opts.match ? '[A-Za-z0-9_.]' + length : match
22+
23+
return new RegExp(startSpace + '@(' + match + ')' + endSpace, opts.flags);
24+
};

license.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Copyright (c) 2014 [Charlike Make Reagent][contrib-more], [contributors][contrib-graf].
2+
3+
Permission is hereby granted, free of charge, to any person
4+
obtaining a copy of this software and associated documentation
5+
files (the "Software"), to deal in the Software without
6+
restriction, including without limitation the rights to use,
7+
copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the
9+
Software is furnished to do so, subject to the following
10+
conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
25+
[contrib-more]: http://j.mp/1stW47C
26+
[contrib-graf]: https://github.com/regexps/mentions-regex/graphs/contributors

package.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "mentions-regex",
3+
"description": "The correct mention(s) regex. Regex done right!",
4+
"version": "0.1.0",
5+
"scripts": {
6+
"test": "npm install && node_modules/.bin/mocha --require should"
7+
},
8+
"author": {
9+
"name": "Charlike Make Reagent",
10+
"email": "[email protected]",
11+
"url": "https://github.com/tunnckoCore"
12+
},
13+
"keywords": [
14+
"regex",
15+
"regexp",
16+
"regexps",
17+
"mentions",
18+
"mention",
19+
"twitter",
20+
"github",
21+
"facebook",
22+
"google"
23+
],
24+
"repository": {
25+
"type": "git",
26+
"url": "git://github.com/regexps/mentions-regex.git"
27+
},
28+
"license": {
29+
"type": "MIT",
30+
"url": "https://github.com/regexps/mentions-regex/blob/master/license.md"
31+
},
32+
"dependencies": {},
33+
"devDependencies": {
34+
"mocha": "^2.0.1",
35+
"should": "^4.4.1"
36+
},
37+
"engines": {
38+
"node": ">= 0.10.33",
39+
"npm": ">= 1.4.28"
40+
}
41+
}

readme.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# mentions-regex [![NPM version][npmjs-img]][npmjs-url] [![Build Status][travis-img]][travis-url] [![regexps org][regexps-img]][regexps-url]
2+
> The correct mention(s) regex. Regex done right!
3+
4+
5+
## Install [![Nodei.co stats][npmjs-ico]][npmjs-url]
6+
> Install with [npm](https://npmjs.org)
7+
8+
```
9+
$ npm install mentions-regex
10+
$ npm test
11+
```
12+
13+
## Usage
14+
todo
15+
16+
17+
## Authors & Contributors
18+
**Charlike Mike Reagent** [![author tips][author-gittip-img]][author-gittip]
19+
+ [gittip/tunnckoCore][author-gittip]
20+
+ [github/tunnckoCore][author-github]
21+
+ [twitter/tunnckoCore][author-twitter]
22+
+ [npmjs/tunnckoCore][author-npmjs]
23+
+ [more ...][contrib-more]
24+
25+
26+
## License [![MIT license][license-img]][license-url]
27+
Copyright (c) 2014 [Charlike Mike Reagent][contrib-more], [contributors][contrib-graf].
28+
Released under the [`MIT`][license-url] license.
29+
30+
31+
[npmjs-url]: http://npm.im/mentions-regex
32+
[npmjs-img]: http://img.shields.io/npm/v/mentions-regex.svg
33+
[npmjs-ico]: https://nodei.co/npm/mentions-regex.svg?mini=true
34+
35+
[coveralls-url]: https://coveralls.io/r/regexps/mentions-regex?branch=master
36+
[coveralls-img]: https://img.shields.io/coveralls/regexps/mentions-regex.svg
37+
38+
[license-url]: https://github.com/regexps/mentions-regex/blob/master/license.md
39+
[license-img]: http://img.shields.io/badge/license-MIT-blue.svg
40+
41+
[travis-url]: https://travis-ci.org/regexps/mentions-regex
42+
[travis-img]: https://travis-ci.org/regexps/mentions-regex.svg
43+
44+
[depstat-url]: https://david-dm.org/regexps/mentions-regex
45+
[depstat-img]: https://david-dm.org/regexps/mentions-regex.svg
46+
47+
[author-gittip-img]: http://img.shields.io/gittip/tunnckoCore.svg
48+
[author-gittip]: https://www.gittip.com/tunnckoCore
49+
[author-github]: https://github.com/tunnckoCore
50+
[author-twitter]: https://twitter.com/tunnckoCore
51+
[author-npmjs]: https://npmjs.org/~tunnckocore
52+
53+
[contrib-more]: http://j.mp/1stW47C
54+
[contrib-graf]: https://github.com/regexps/mentions-regex/graphs/contributors
55+
56+
[regexps-img]: http://img.shields.io/badge/regexps-approved-brightgreen.svg
57+
[regexps-url]: https://github.com/regexps

0 commit comments

Comments
 (0)