match-at

WebJar for match-at

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

match-at
Последняя версия

Последняя версия

0.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

match-at
WebJar for match-at
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/sophiebits/match-at

Скачать match-at

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/match-at/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>match-at</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/match-at/
implementation 'org.webjars.npm:match-at:0.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/match-at/
implementation ("org.webjars.npm:match-at:0.1.1")
'org.webjars.npm:match-at:jar:0.1.1'
<dependency org="org.webjars.npm" name="match-at" rev="0.1.1">
  <artifact name="match-at" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='match-at', version='0.1.1')
)
libraryDependencies += "org.webjars.npm" % "match-at" % "0.1.1"
[org.webjars.npm/match-at "0.1.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

match-at Build Status

Introduction

Like String.prototype.match if it only checked the regex at the given index instead of searching the entire string.

matchAt(/world/, 'hello world', 6);  // ['world']
matchAt(/world/, 'hello world', 0);  // null

Almost like 'hello world'.slice(i).match(/^world/) except the resulting match object's .index property corresponds to the original string, and it doesn't actually slice the string. Most engines optimize taking a substring so this probably isn't particularly valuable in practice, but it was an entertaining exercise and could be useful if you reminisce about these semantics.

License

MIT.

Версии библиотеки

Версия
0.1.1
0.1.0