Skip to content

Commit 18d4d18

Browse files
committed
welcome 0.0.1
0 parents  commit 18d4d18

File tree

12 files changed

+294
-0
lines changed

12 files changed

+294
-0
lines changed

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
repo_token:

.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: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Always-ignore dirs #
2+
# ####################
3+
_gh_pages
4+
node_modules
5+
bower_components
6+
components
7+
vendor
8+
build
9+
dest
10+
dist
11+
src
12+
lib-cov
13+
coverage
14+
nbproject
15+
cache
16+
temp
17+
tmp
18+
19+
# Another files #
20+
# ###############
21+
Icon?
22+
.DS_Store*
23+
Thumbs.db
24+
ehthumbs.db
25+
Desktop.ini
26+
npm-debug.log
27+
.directory
28+
._*
29+
_test.js

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
sudo: false
2+
language: node_js
3+
node_js:
4+
- 'iojs'
5+
- '0.12'
6+
- '0.10'
7+
script: 'npm run coveralls'

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## v1.0.0 / 12, 2014
2+
- init commits

LICENCE

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

Makefile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
_MOCHA = node_modules/.bin/_mocha
9+
ISTANBUL = node_modules/.bin/istanbul
10+
COVERALLS = node_modules/.bin/coveralls
11+
12+
test:
13+
npm install
14+
${MOCHA}
15+
16+
test-cov:
17+
npm install
18+
${ISTANBUL} cover ${_MOCHA}
19+
20+
test-travis:
21+
npm install
22+
${ISTANBUL} cover ${_MOCHA} --report lcovonly
23+
24+
coveralls: test-travis
25+
cat ./coverage/lcov.info | ${COVERALLS}
26+
27+
clean:
28+
rm -rf node_modules coverage
29+
30+
.PHONY: lint test coveralls clean

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# vimeo-regex [![NPM version][npmjs-img]][npmjs-url] [![Build Status][travis-img]][travis-url] [![Coveralls][coveralls-img]][coveralls-url]
2+
> The correct Youtube video id 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 vimeo-regex
10+
$ npm test
11+
```
12+
13+
14+
## Online
15+
16+
17+
## Usage
18+
> For more use-cases see [tests](./test.js)
19+
20+
21+
## Thanks
22+
> You can match Vimeo due to these people:
23+
24+
<table>
25+
<thead>
26+
<tr><th align="left">Name</th><th>GitHub</th><th>Twitter</th></tr>
27+
</thead>
28+
<tbody>
29+
<tr><td align="left">Ruslan Ismagilov</td><td><a href="https://github.com/isRuslan">@isRuslan</a></td><td><a href="http://twitter.com/is_ruslan">@is_ruslan</a></td></tr>
30+
</tbody>
31+
</table>
32+
33+
## License
34+
MIT © [Ruslan Ismagilov](https://github.com/isRuslan)

index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use strict';
2+
/**
3+
* Welcome to the vimeo-regex!
4+
*/
5+
6+
module.exports = function vimeoRegex () {
7+
var regex = /^(http|https)?:\/\/(www\.)?vimeo\.com\/(clip\:)?(\d+).*$/;
8+
var regex2 = /https?:\/\/(?:www\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|)(\d+)(?:$|\/|\?)/;
9+
10+
return regex;
11+
};

0 commit comments

Comments
 (0)