Skip to content

Commit

Permalink
Release version 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorin95670 committed Jul 23, 2023
1 parent aeaaeb5 commit 62ea7cb
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {getMangaFromUrl, saveBookmark, saveManga} from './storage.js';
import { getChapterFromUrl } from './url.js';

function compareChapter(a, b) {
return parseInt(b, 10) - parseInt(a, 10);
return parseFloat(b) - parseFloat(a);
}

chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
Expand Down
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)

## [1.1.1] - 2023/07/23

### Fixed

- Manage chapter with "-".

## [1.1.0] - 2023/07/23

### Added
Expand All @@ -18,5 +24,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add a new mange from url.
- Save/update bookmark.

[1.1.1]: https://github.com/Zorin95670/manga-saver/blob/main/changelog.md#1.1.1
[1.1.0]: https://github.com/Zorin95670/manga-saver/blob/main/changelog.md#1.1.0
[1.0.0]: https://github.com/Zorin95670/manga-saver/blob/main/changelog.md#1.0.0
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Manga saver",
"version": "1.1.0",
"version": "1.1.1",
"description": "Chrome extension to save your progress when you read manga/webtoon online!",
"background": {
"service_worker": "background.js",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "manga-saver",
"version": "1.1.0",
"version": "1.1.1",
"description": "Chrome extension to save your progress when you read manga/webtoon online!",
"main": "webpack.config.js",
"productName": "Manga saver",
Expand Down
4 changes: 2 additions & 2 deletions url.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ export function getIdFromUrl(url) {
}

export function getChapterFromUrl(url) {
const chapter = url.match(/(\d+)(?!.*\d)/);
const chapter = url.match(/(\d+(-\d+)?)\/?$/);

if (chapter) {
return parseInt(chapter[1], 10);
return parseFloat(chapter[1].replace('-', '.'));
}

return null;
Expand Down

0 comments on commit 62ea7cb

Please sign in to comment.