Skip to content

Some Minor issues about Abracadabra #4

Description

@SheepChef

So in the Abracadabra implement, there are some minor issues.

  • Breaking changes were rarely rolled out, and the lastest version is always capatible to decrypt all the past versions

src/plugins/memes/abracadabra.ts

import { version } from 'abracadabra-cn/package.json';
import { Plugin } from '../../decoders/decorators';

@Plugin({
  id: 'abracadabra',
  name: '魔曰',
- link: 'https://abra.halu.ca/',
+ link: 'https://abra.js.org/',
- description: `常有不兼容更新,如解码失败请前往官网(当前版本:${version})`,
+ description: `${version} ©SheepChef `,
  needKey: true,
  encoderHelpMessage: '完整选项请前往官网',
})
export class AbracadabraDecoder {
  private static defaultKey = 'ABRACADABRA';

  checkString(input: string): number {
    if (/^[\u4E00-\u9FA5\u9FA6-\u9FCB\u2E80-\u2EFF]+$/.test(input)) {
      return 80;
    }
    if (/^[^\w]+$/.test(input)) {
      return 30;
    }
    return 0;
  }

My req is that you may add the copyright information and License information on your pages.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions