Skip to content

Commit dee8e76

Browse files
committed
small changes to language
1 parent 38d4174 commit dee8e76

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Beta Code JS
22

3-
Converts Greek beta code to Greek characters and vice versa.
3+
Converts Greek Beta Code to Greek characters and vice versa.
44

55
## Try it Out
66

@@ -14,6 +14,8 @@ or
1414

1515
`npm install beta-code-js`
1616

17+
(See project on [npm](https://www.npmjs.com/package/beta-code-js))
18+
1719
## Usage
1820

1921
```javascript
@@ -102,5 +104,5 @@ git commit
102104

103105
## Notes
104106

105-
For the mappings between beta code and Unicode, see [https://github.com/perseids-tools/beta-code-json](https://github.com/perseids-tools/beta-code-json).
107+
For the mappings between Beta Code and Unicode, see [https://github.com/perseids-tools/beta-code-json](https://github.com/perseids-tools/beta-code-json).
106108
For an example of this package being used, see [https://github.com/perseids-project/beta-code-converter-js](https://github.com/perseids-project/beta-code-converter-js).

bundle/beta-code.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function longestKeyLength(obj) {
2525
// - at the end of a line
2626
// - followed by whitespace
2727
// - followed by a punctuation character
28-
// REGEX NOTE: word boundary \b doesn't work well with unicode
28+
// REGEX NOTE: word boundary \b doesn't work well with Unicode
2929
function sigmaToEndOfWordSigma(string) {
3030
return string.replace(/σ(?=[,.:;·\s]|$)/g, 'ς');
3131
}
@@ -101,8 +101,8 @@ function betaCodeToGreek(betaCode, customMap) {
101101
newStart = start + 1;
102102
maxLength = min(betaCodeCharacters.length, start + maxBetaCodeCharacterLength);
103103

104-
// match the longest possible substring that's valid beta code, from left to right
105-
// for example 'e)' is valid beta code (ἐ) but 'e)/' is also valid beta code (ἕ)
104+
// match the longest possible substring that's valid Beta Code, from left to right
105+
// for example 'e)' is valid Beta Code (ἐ) but 'e)/' is also valid Beta Code (ἕ)
106106
// the string 'e)/' should be interpreted as 'e)/' and not as 'e)' + '/'
107107
for (end = newStart; end <= maxLength; end += 1) {
108108
slice = betaCodeCharacters.slice(start, end).join('');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "beta-code-js",
33
"version": "2.0.0",
4-
"description": "Convert Greek beta code to Greek characters",
4+
"description": "Convert Greek Beta Code to Greek characters",
55
"main": "index.js",
66
"repository": {
77
"type": "git",

0 commit comments

Comments
 (0)