Skip to content

Commit 5908f2d

Browse files
committed
Merge pull request #8 from akalicki/typos
Fixed a few typos in code comments
2 parents 7c0b451 + f1cd210 commit 5908f2d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
VerbalExpressions v0.1
22
=====================
33

4-
## JavaScript Regular expressions made easy
5-
VerbalExpressions is a JavaScript librarty that helps to construct hard regular expressions.
4+
## JavaScript Regular Expressions made easy
5+
VerbalExpressions is a JavaScript library that helps to construct difficult regular expressions.
66

77
## How to get started
88

99
Include the library and you're good to go!
1010
```HTML
11-
<script type="text/javascript" src="VerbalExpressions.js"></script>
11+
<script src="VerbalExpressions.js"></script>
1212
```
1313

1414
## Examples
1515

16-
Here's a couple of simple examples to give an idea of how VerbalExpressions work:
16+
Here's a couple of simple examples to give an idea of how VerbalExpressions works:
1717

18-
### Testing if we have valid URL
18+
### Testing if we have a valid URL
1919

2020
```javascript
2121
// Create an example of how to test for correctly formed URLs
@@ -31,7 +31,7 @@ var tester = VerEx()
3131
// Create an example URL
3232
var testMe = "https://www.google.com";
3333

34-
// Use RegExp object's native test() -function
34+
// Use RegExp object's native test() function
3535
if( tester.test( testMe ) ) alert( "We have a correct URL "); // This output will fire
3636
else alert( "The URL is incorrect" );
3737

VerbalExpressions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ window.VerbalExpression = (function(){
9292
return( this );
9393
},
9494

95-
// We try to keep the syntax ass
95+
// We try to keep the syntax as
9696
// user-friendly as possible.
9797
// So we can use the "normal"
98-
// behaviour to split the "scentences"
98+
// behaviour to split the "sentences"
9999
// naturally.
100100
then : function( value ) {
101101
value = this.sanitize( value );
@@ -118,7 +118,7 @@ window.VerbalExpression = (function(){
118118
return( this );
119119
},
120120

121-
// Any character any times
121+
// Any character any number of times
122122
anything : function() {
123123
this.add( "(.*)" );
124124
return( this );

0 commit comments

Comments
 (0)